package com.zt.proxy.service;

import java.util.List;

import com.zt.proxy.dto.ResultDTO;
import com.zt.proxy.model.RegistryModel;


/**
* @Title: ZkAddressService.java  
* @Description: zk地址管理类
* @author zhoutao    
* @date 2019年3月4日 下午2:57:04  
* @version V1.0
 */
public interface ZkAddressService {

    /**
     * list all registry.
     *
     * @return
     */
    List<RegistryModel> listRegistry();

    /**
     * add registry.
     *
     * @return
     */
    ResultDTO<RegistryModel> addRegistry(RegistryModel model);

    /**
     * load zk config.
     */
    void loadZkAddrFromResource();

    /**
     * delete registry.
     *
     * @param model
     * @return
     */
    ResultDTO<RegistryModel> delRegistry(RegistryModel model);
}
